var plugin = requirePlugin("myPlugin")
Page({
  data:{
    time: (new Date()).toString()
  },
  onLoad: function() {
    plugin.getData()
  },


  //点击广告图跳转到活动页面
  navToActive: function () {
    wx.navigateTo({
      url: '/pages/active/active'
    })
  },
  //点击凑热闹商品马上凑按钮
  navToCourngdetail:function(e){
    var pid=e.currentTarget.dataset.pid;
    wx.navigateTo({
      url: '/pages/goods/courngdetail?id='+pid,
    })
    //console.log(pid);
  },
  //点击更多热闹进入
  navToMoreCournGoods:function(e){
    wx.navigateTo({
      url: '/pages/goods/morecourngoods',
    })
  }
})

